package com.hua.designpattern.behavioral.memento;

public class BaseObject {

	private String name;

	public BaseObject() {
		super();
	}

	public BaseObject(BaseObject baseObject) {
		super();
		this.name = baseObject.getName();
	}

	public BaseObject SetBaseObject(BaseObject baseObject) {
		this.name = baseObject.getName();
		return this;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return super.toString() + "[name=" + name + "]";
	}

}
